package com.findFish.water.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.water.mapper.FarmLocationMapper;
import com.findFish.water.domain.FarmLocation;
import com.findFish.water.service.IFarmLocationService;

/**
 * 养殖场地理信息Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class FarmLocationServiceImpl implements IFarmLocationService 
{
    @Autowired
    private FarmLocationMapper farmLocationMapper;

    /**
     * 查询养殖场地理信息
     * 
     * @param id 养殖场地理信息主键
     * @return 养殖场地理信息
     */
    @Override
    public FarmLocation selectFarmLocationById(Long id)
    {
        return farmLocationMapper.selectFarmLocationById(id);
    }

    /**
     * 查询养殖场地理信息列表
     * 
     * @param farmLocation 养殖场地理信息
     * @return 养殖场地理信息
     */
    @Override
    public List<FarmLocation> selectFarmLocationList(FarmLocation farmLocation)
    {
        return farmLocationMapper.selectFarmLocationList(farmLocation);
    }

    /**
     * 新增养殖场地理信息
     * 
     * @param farmLocation 养殖场地理信息
     * @return 结果
     */
    @Override
    public int insertFarmLocation(FarmLocation farmLocation)
    {
        return farmLocationMapper.insertFarmLocation(farmLocation);
    }

    /**
     * 修改养殖场地理信息
     * 
     * @param farmLocation 养殖场地理信息
     * @return 结果
     */
    @Override
    public int updateFarmLocation(FarmLocation farmLocation)
    {
        return farmLocationMapper.updateFarmLocation(farmLocation);
    }

    /**
     * 批量删除养殖场地理信息
     * 
     * @param ids 需要删除的养殖场地理信息主键
     * @return 结果
     */
    @Override
    public int deleteFarmLocationByIds(Long[] ids)
    {
        return farmLocationMapper.deleteFarmLocationByIds(ids);
    }

    /**
     * 删除养殖场地理信息信息
     * 
     * @param id 养殖场地理信息主键
     * @return 结果
     */
    @Override
    public int deleteFarmLocationById(Long id)
    {
        return farmLocationMapper.deleteFarmLocationById(id);
    }
}
